package pl.edu.agh.intobl.evaluators;

import java.util.List;

import org.uncommons.watchmaker.framework.FitnessEvaluator;

import pl.edu.agh.intobl.RouteSet;

/**
 * Evaluator for calculating individual fitness
 */
public class RouteSetEvaluator implements FitnessEvaluator<RouteSet> {

	@Override
	public double getFitness(RouteSet candidate, List<? extends RouteSet> population) {
		return candidate.fitness();
	}

	@Override
	public boolean isNatural() {
		return false;
	}
}
